package rest.jbpm.wrappers;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "choice", propOrder = {"choice","count"})
public class Choice {
	
	private String choice;
	private Number count;
	
	protected Choice() {
	}

	public Choice(String choice, Number count) {
		this.choice = choice;
		this.count = count;
	}
	
    @XmlElement(required = true)
    public long getCount() {
        return count.longValue();
    }
    
    @XmlElement(required = true)
    public String getChoice() {
        return choice;
    }
	
}
